﻿<!--==Copyright comes here==-->
<UserControl x:Class="P2.Cuberry.Modules.Framework.UserGroup.UserGroupsListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/CuberryDataGrid.xaml"/>                
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" MinHeight="44" />
            
 
        </Grid.RowDefinitions>

        <DataGrid Grid.Row ="0" ItemsSource="{Binding Model}" 
                     Name="UserGroupsList" 
                     SelectionChanged="UserGroupsList_SelectionChanged" 
                     MouseDoubleClick="UserGroupsList_DblClick"                     
                     Style="{DynamicResource CuberryDataGridStyle}"
                     VerticalAlignment="Stretch">
            
            <DataGrid.Columns>
                <DataGridTextColumn Header="{Translate UserGroupIDL}" Binding="{Binding Path=UserGroupID}" MinWidth="50" Width="100" />  
                <DataGridTextColumn Header="{Translate UserGroupNameL}" Binding="{Binding Path=UserGroupName}" MinWidth="50" Width="200"/>
                <DataGridTextColumn Header="{Translate UserGroupDescriptionL}" Binding="{Binding Path=UserGroupDescription}" MinWidth="50" Width="250"/>
                <DataGridCheckBoxColumn  Header="{Translate ActiveL}" Binding="{Binding Path=Active}" IsReadOnly="True" MinWidth="50" Width="*"/> 
            </DataGrid.Columns>
        </DataGrid>
    
</Grid>
</UserControl>
